﻿using Common.Result;
using Microsoft.AspNetCore.Http;
using Model.Dto.Orders;
using Model.Entitys;

namespace IService
{
    public interface IOrderService
    {
        Task SubmitAsync(OrderAdd orderAdd, HttpContext HttpContext);
        Task<PageInfo> GetUserOrdersAsync(int page, int pageSize,long userId);
        Task<PageInfo> GetOrdersAsync(int page, int pageSize,string? number,DateTime? beginTime, DateTime? endTime);

        Task EditOrdersStatusByIdAsync(OrderEdit orderEdit);
    }
}
